<?php

namespace Action\Contact;

class Remove extends \Library\Action\UserAction
	implements \Library\Action\AjaxAction {

	private $_contact;

	public function execute() {
		parent::execute();
		
		$user_id = (int) $this->getParam( 'id' );
		
		_q()->del( 'users_requests', array(
			'requester_id' => _u()->getUserId(),
			'acceptor_id' => $user_id
		) );
		
		_q()->del( 'users_requests', array(
			'acceptor_id' => _u()->getUserId(),
			'requester_id' => $user_id
		) );
		
		return true;
	}
	
}
